<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>密码找回</title>
</head>
<body>
    <form action="{% url 'student_myapp:zhaohui' %}" method="post">
        {% csrf_token %}
        <p>
            <label>&emsp;&emsp;&emsp;用户名：</label><input id="user1" type="text" name="user"/>
        </p>
        <p>
            <label>&emsp;&emsp;&emsp;邮&emsp;箱：</label><input id="email1" type="email" name="email"/>
        </p>
        <p>
            <label>&emsp;&emsp;&emsp;新密码：</label><input type="password" name="pwd1"/>
        </p>
        <p>
            <label>再次输入密码：</label><input type="password" name="pwd2"/>
        </p>
        <p>
            <input type="text" name="yanzheng" style="height: 20px; width: 80px" placeholder="请输入验证码"/>
            <button style="height: 25px; width: 100px" onclick="">获取验证码</button>
        </p>
        <p>
            <input type="submit" value="重置">
        </p>
    </form>
<script>
    function get_yanzheng() {
        var user = document.getElementById('user1').value;
        var email = document.getElementById('email1').value;
        window.location.href="{% url 'student_myapp:zhaohui' %}"
    }

</script>

</body>
</html>